package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.TestMapper;
import com.itheima.pojo.User;
import com.itheima.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @version V1.0
 * @author: yongjichu
 * @date: 2020/1/8 21:26
 * @description:
 */
@Service(interfaceClass = TestService.class)
@Transactional
public class TestServiceImpl implements TestService {
    @Autowired
    private TestMapper testMapper;
    @Override
    public List<User> findAllUser() {
        return testMapper.findAllUser();
    }
}
